@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="WzCouponInfoForm">

            <input type="hidden" id="id" value="">

            <div class="row">
                <div class="col-sm-6">
                    <#input id="title" name="标题"/>
                    <#input id="beginTime" name="开始时间" clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})"/>

                    <!--<#input id="userInfoId" name="商户信息id"/>-->
                    @if(type==2){
                        <#select id="subtype" name="子类型">
                            <option value="1">抵扣券</option>
                            <option value="2">折扣券</option>
                        </#select>
                        <#input id="remark" name="展示备注"/>
                     @}
                    <#input id="fileId" name="封面图id"/>
                <div class="col-sm-9" style="margin-top:-40px;margin-left: 600px ">
                    <img id="previewPic" src="" width="130" height="180" style="margin:-8px auto;display:none"  />
                </div>
                </div>
                <div class="col-sm-6">
                    @if(type==2){
                        <#input id="subtitle" name="副标题"/>
                    @}
                    <#input id="endTime" name="结束时间" clickFun="laydate({istime: true, format: 'YYYY-MM-DD hh:mm:ss'})" />
                    <#select id="type" name="类型">
                        @if(type==1){
                            <option value="1">抽奖券</option>
                        @}
                        @if(type==2){
                            <option value="2">商家优惠券</option>
                        @}
                    </#select>


                    <#input id="subremark" name="详细备注"/>
                </div>

                <div>
                    <div>
                        <div class="col-sm-9">
                            <#NameCon id="condition_userCode" style="width:30%" name="用户编号" placeholder="用户编号"/>
                        </div>
                        <div class="col-sm-3">
                            <#button name="搜索" icon="fa-search" clickFun="WzMerchantInfo.search()"/>
                        </div>
                    </div>
                    <#table id="WzMerchantInfoTable"/>
                </div>
            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-10">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="WzCouponInfoDlg.addSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="WzCouponInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/wz/wzCoupon/wzCoupon_info.js"></script>
<script src="${ctxPath}/static/modular/wz/pfFile/pfFile_Preview.js"></script>
<script src="${ctxPath}/static/modular/wz/wzAdv/wzAdv_search.js"></script>
@}
